package vn.bang;

import java.io.IOException;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@SuppressWarnings("serial")
public class OnlineMobileGameServlet extends HttpServlet {

	@Override
	public void doPost(HttpServletRequest req, HttpServletResponse resp)
			throws IOException {
		
		
		
//		EmployeeDTO th = ofy().load().type(EmployeeDTO.class).id(123L).now();
		
//		UserService userService = UserServiceFactory.getUserService();
//		User user = userService.getCurrentUser();
//
//		String guestbookName = req.getParameter("guestbookName");
//		Key guestbookKey = KeyFactory.createKey("Guestbook", guestbookName);
//		String content = req.getParameter("content");
//		Date date = new Date();
//		Entity greeting = new Entity("Greeting", guestbookKey);
//		greeting.setProperty("user", user);
//		greeting.setProperty("date", date);
//		greeting.setProperty("content", content);
//
//		DatastoreService datastore = DatastoreServiceFactory
//				.getDatastoreService();
//		datastore.put(greeting);
//
//		resp.sendRedirect("/guestbook.jsp?guestbookName=" + guestbookName);
	}

}
